package org.kumas.sgrpc.remoting;

public interface Constants {
    String CODEC_KEY = "codec";

    String BUFFER_KEY = "buffer";

    String SERVER_KEY = "server";

    String CLIENT_KEY = "client";

    String DEFAULT_REMOTING_CLIENT = "netty";

    String TRANSPORTER_KEY = "transporter";

    String DEFAULT_TRANSPORTER = "netty";

    String CONNECT_TIMEOUT_KEY = "connect.timeout";

    int DEFAULT_CONNECT_TIMEOUT = 3000;

    String BIND_IP_KEY = "bind.ip";

    String BIND_PORT_KEY = "bind.port";
    String ACCEPTS_KEY = "accepts";
    int DEFAULT_ACCEPTS = 0;
    String SENT_KEY = "sent";

    String CONNECT_QUEUE_CAPACITY = "connect.queue.capacity";

    String CONNECT_QUEUE_WARNING_SIZE = "connect.queue.warning.size";

    int DEFAULT_CONNECT_QUEUE_WARNING_SIZE = 1000;

    String CHARSET_KEY = "charset";

    String DEFAULT_CHARSET = "UTF-8";

    String IDLE_TIMEOUT_KEY = "idle.timeout";
    String HEARTBEAT_KEY = "heartbeat";
    int DEFAULT_HEARTBEAT = 60 * 1000;
    int DEFAULT_IDLE_TIMEOUT = 600 * 1000;

    int DEFAULT_IO_THREADS = Math.min(Runtime.getRuntime().availableProcessors() + 1, 32);

    int DEFAULT_PAYLOAD = 8 * 1024 * 1024;
    String PAYLOAD_KEY = "payload";

    String SERIALIZATION_KEY = "serialization";

    String DEFAULT_REMOTING_SERIALIZATION = "NativeJavaSerialization";

    int DEFAULT_RECONNECT_PERIOD = 2000;

    String SEND_RECONNECT_KEY = "send.reconnect";

    String CHECK_KEY = "check";

    String PROMPT_KEY = "prompt";

    String DEFAULT_PROMPT = "sgrpc>";
    String TELNET = "telnet";
    String HEARTBEAT_TIMEOUT_KEY = "heartbeat.timeout";
    String CONNECTIONS_KEY = "connections";

    int DEFAULT_BACKLOG = 1024;

    String EXCHANGER_KEY = "exchanger";

    String DEFAULT_EXCHANGER = "HeaderExchanger";

    int TICKS_PER_WHEEL = 128;
    String CHANNEL_ATTRIBUTE_READONLY_KEY = "channel.readonly";

    String CHANNEL_READONLYEVENT_SENT_KEY = "channel.readonly.sent";

    String CHANNEL_SEND_READONLYEVENT_KEY = "channel.readonly.send";

    String RECONNECT_KEY = "reconnect";

    public static final String DEFAULT_SGRPC_PROTOCOL_VERSION = "2.0.2";

    int HEARTBEAT_CHECK_TICK = 3;
    long LEAST_HEARTBEAT_DURATION = 1000;

}